package com.sram.service.impl;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import com.sram.dao.FunctionDao;
import com.sram.dao.UserDao;
import com.sram.entity.Function;
import com.sram.entity.User;
import com.sram.service.FunctionService;
import com.sram.service.UserService;

public class FunctionServiceImpl implements FunctionService {
	private FunctionDao functionDao;
	
	public FunctionDao getFunctionDao() {
		return functionDao;
	}

	public void setFunctionDao(FunctionDao functionDao) {
		this.functionDao = functionDao;
	}

	@Override
	public List<Function> findFunction(String name) {
		return functionDao.findll(name);
	}

	
}	


